package com.miao.websecurity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 角色与api中间表(RoleApi)表实体类
 *
 * @author MiaoWenqing
 * @since 2021-01-16 15:41:07
 */
@SuppressWarnings("serial")
public class RoleApi extends Model<RoleApi> {
    //角色id

    private String roleId;
    //api id
    private String apiId;

    public RoleApi(String roleId, String apiId) {
        this.roleId = roleId;
        this.apiId = apiId;
    }

    public RoleApi() {
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getApiId() {
        return apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }
}